#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<stdlib.h>
#define M 100
typedef int x;
typedef char y;
typedef struct Huffman {
	y data;
	x weights;
	struct Huffman* left;
	struct Huffman* ringth;
}H;

H* create(H* w);
void huffman(H* w, int len);